/**
 * @file mod_com.h
 * @author your name (you@domain.com)
 * @brief 
 * @version 0.1
 * @date 2025-06-20
 * 
 * @copyright Copyright (c) 2025
 * 
 */

#ifndef _MOD_COM_H
#define _MOD_COM_H

#include <iostream>
#include <string>
// mod_com.h

/**
 * @brief 串口数据获取
 *
 * @param data
 * @param len
 * @return int
 */
int CommDataRead(uint8_t *data, int len);
/**
 * @brief 串口数据写入
 *
 * @param data
 * @param len
 * @return int
 */
int CommDataWrite(char *data, int len);
/**
 * @brief 打开串口
 *
 * @param fullportName
 */
bool ConnectCom(const char *fullportName);

int text_main(void);
void CleanCom(void);
#endif 